<template>
    <div @click="onClick">
        <Row type="flex">
            <img :src="itemData.image" >
        </Row>
        <Row type="flex">
            <div class="price">￥{{itemData.price}}</div>
        </Row>
        <Row type="flex">
            <div class="dis">{{itemData.description}}</div>
        </Row>
        <Row type="flex">
            <div class="comment">{{itemData.comment}}</div>
        </Row>
        <Row type="flex">
            <div class="self"><Tag color="red">自营</Tag></div>
        </Row>
    </div>
</template>

<script>
import { mapState, mapActions } from "vuex";
export default {
  name: "BookPro",
  props:['itemData'],
  computed: {
      ...mapState({
        count:(state)=>{
          return state.home.banner
        }
      })
    }
};
</script>

<style lang="scss" scoped>
.price {
  width: 220px;
  color: red;
  font-size: 24px;
  text-align: left;
  margin-bottom: 5px;
  padding: 0 60px;
}
.dis {
  width: 220px;
  text-align: left;
  margin-bottom: 5px;
  padding: 0 60px;
}
.comment{
    width: 220px;
    text-align: left;
    color:#646fb0;
    margin-bottom: 5px;
    font-weight: 700;
    padding: 0 60px;
}
.self{
    width: 220px;
    text-align: left;
    padding: 0 60px;
}
</style>